<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    
    <title>post | conci</title>
    <meta name="description" content="继续叨叨叨之前介绍了hexo的安装和部署（还没部署的小伙伴点这里)，这篇咱们接着介绍怎么应用主题。 conci主题(github)这里主要是配置的conci主题 下载concihexo的主题都存放在themes文件夹下，在themes文件夹下右键Git bash Here，输入：1$ git clone https://github.com/cspp01/concise.git 然后在主_conf">
<meta name="keywords" content="hexo,conci,hexo主题">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo主题配置conci">
<meta property="og:url" content="http://www.ccblog.win/2017/06/01/hexo主题配置conci/index.html">
<meta property="og:site_name" content="cc">
<meta property="og:description" content="继续叨叨叨之前介绍了hexo的安装和部署（还没部署的小伙伴点这里)，这篇咱们接着介绍怎么应用主题。 conci主题(github)这里主要是配置的conci主题 下载concihexo的主题都存放在themes文件夹下，在themes文件夹下右键Git bash Here，输入：1$ git clone https://github.com/cspp01/concise.git 然后在主_conf">
<meta property="og:updated_time" content="2017-06-02T02:47:32.808Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="hexo主题配置conci">
<meta name="twitter:description" content="继续叨叨叨之前介绍了hexo的安装和部署（还没部署的小伙伴点这里)，这篇咱们接着介绍怎么应用主题。 conci主题(github)这里主要是配置的conci主题 下载concihexo的主题都存放在themes文件夹下，在themes文件夹下右键Git bash Here，输入：1$ git clone https://github.com/cspp01/concise.git 然后在主_conf">
    
        <link rel="alternate" href="true" title="cc" type="application/atom+xml">
    
    
        <link rel="icon" href="/favicon.ico">
    
    <link rel="stylesheet" href="/css/concise.css">
    <script src="/js/concise.js"></script>
    <script>
        (function(){
            var useragent=navigator.userAgent;
            console.log(navigator,useragent);
            var isM;
            if(useragent.indexOf('iPhone')!=-1){
                isM=true;
            }else if(useragent.indexOf('Android ')!=-1){
                isM=true;
            }else if(useragent.indexOf('iPad')!=-1){
                isM=true;
            }else{
                isM=false;
            }
            if(isM){
                document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+'px';
                window.onresize=function(){
                    document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+'px';
                };
            }
        })();
    </script>
    
        <script type="text/javascript" id="hexo.configuration">
            var CONFIG = {
                root: '/',
                algolia: {
                    applicationID: '148WKKLBJ2',
                    apiKey: '1b27867f0ba7ad358543a84d6d30bcb3',
                    indexName: 'test',
                    hits: {
                        per_page: ''
                    },
                    labels: {
                        input_placeholder: '请输入要搜索的字段...',
                        hits_empty: '没有查找到和 「${query}」相关的内容',
                        hits_stats: '总共${hits} 条相关条目，使用了 ${time} 毫秒'
                    }
                }
            };
        </script>
    
    <script src="http://opu30aljn.bkt.clouddn.com/jquery.js"></script>
    
        <script src="http://opu30aljn.bkt.clouddn.com/instantsearch.js"></script>
        <script src="/js/thirdparty/algolia.js"></script>
    
    <script src="/js/script.js"></script>
</head>
<body>
<input type="checkbox" id="left-information">
<div id="wrapper">
    <div id="bgg"></div>
    <header id="header">
    <nav id="nav" class="clearfix">
        <label for="left-information"></label>
        <ul class='nav-left'>
            <li><a href="/">ccblog</a></li>
        </ul>
        <input type="checkbox" id="header-right-nav">
        <ul class="clearfix nav-right">
            
            <li><a href="/">Home</a></li>
            
            <li><a href="/about">About</a></li>
            
            <li><a href="/contact">Contact</a></li>
            
            <li><a href="/archives">Archives</a></li>
            
            <li><a href="/tags">tags</a></li>
            
        </ul>
        <label for="header-right-nav"><i></i></label>
    </nav>
</header>
    <article id="logo">
    <div id="logo-content">
        <header>
            <a href="">cc&#39;s .blog<b>conci</b></a>
        </header>
        <p>
            conci theme 1.0.0<br>
            Simple and practical hexo personal blog theme.<br>
            The freedom to choose
        </p>
    </div>
</article>
    <div id="main" class="clearfix">
        <section id="main-left" class="left">
            <article id="post">
    <h1>hexo主题配置conci</h1>
    <p>
        
            <span class="visitors">visitors
                <span id="/2017/06/01/hexo主题配置conci/" class="leancloud_visitors" data-flag-title="hexo主题配置conci">
                    <span class="leancloud-visitors-count">0</span>
                </span>
            </span>&nbsp;&nbsp;•&nbsp;&nbsp;
        
        
            <span class="tag">
                  <a class="article-category-link" href="/categories/hexo主题/">hexo主题</a>
            </span>&nbsp;&nbsp;•&nbsp;&nbsp;
        
        <span class="date">2017.06.01</span>
    </p>
    <div id="page-post-content">
        <h2 id="继续叨叨叨"><a href="#继续叨叨叨" class="headerlink" title="继续叨叨叨"></a>继续叨叨叨</h2><p>之前介绍了hexo的安装和部署（还没部署的小伙伴<a href="http://www.ccblog.win/2017/03/12/hexo%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/">点这里</a>)，这篇咱们接着介绍怎么应用主题。</p>
<h2 id="conci主题-github"><a href="#conci主题-github" class="headerlink" title="conci主题(github)"></a>conci主题(<a href="https://github.com/cspp01/concise" target="_blank" rel="external">github</a>)</h2><p>这里主要是配置的conci主题</p>
<h3 id="下载conci"><a href="#下载conci" class="headerlink" title="下载conci"></a>下载conci</h3><p>hexo的主题都存放在themes文件夹下，在themes文件夹下右键Git bash Here，输入：<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ git <span class="built_in">clone</span> https://github.com/cspp01/concise.git</div></pre></td></tr></table></figure></p>
<p>然后在主_config.yml文件中找到theme字段改为concise。</p>
<h3 id="安装scss预编译插件"><a href="#安装scss预编译插件" class="headerlink" title="安装scss预编译插件"></a>安装scss预编译插件</h3><p>由于我是用的是scss写的css代码，所以先安装sass插件。在主根目录下右键Git bash Here，输入<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">npm install hexo-renderer-sass --save</div></pre></td></tr></table></figure></p>
<h3 id="安装自定义页面的插件"><a href="#安装自定义页面的插件" class="headerlink" title="安装自定义页面的插件"></a>安装自定义页面的插件</h3><p>在主根目录下右键Git bash Here，输入<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">npm install hexo-generator-mypage --save</div></pre></td></tr></table></figure></p>
<p>然后在主_config.yml中添加如下<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">mypage:</div><div class="line"> tags/index.html: tags</div><div class="line"> categories/index.html: categories</div><div class="line"> about.html: about</div></pre></td></tr></table></figure></p>
<p>基本条件已经OK，可以预览了。输入：<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">$ hexo clean</div><div class="line">$ hexo s -debug</div></pre></td></tr></table></figure></p>
<p>在本地预览调试看看是否应用成功。</p>
<h2 id="conci基本配置"><a href="#conci基本配置" class="headerlink" title="conci基本配置"></a>conci基本配置</h2><h3 id="设置头像"><a href="#设置头像" class="headerlink" title="设置头像"></a>设置头像</h3><p>在主题配置文件中找到my_img字段.<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">my_img: http://ooa3lxrpg.bkt.clouddn.com/b.jpg?imageView2/1/w/120/h/120/q/75 //地址（云存储对应头像的地址）也可放在本地，不过推荐放云端存储。</div></pre></td></tr></table></figure></p>
<h3 id="添加logo"><a href="#添加logo" class="headerlink" title="添加logo"></a>添加logo</h3><p>在主题配置文件中找到logo字段<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">logo: conci <span class="comment">#&lt;img src="./logo.png"&gt;//可以是字符也可以是图片如(&lt;img src="你的logo地址"&gt;)</span></div></pre></td></tr></table></figure></p>
<h3 id="添加favicon"><a href="#添加favicon" class="headerlink" title="添加favicon"></a>添加favicon</h3><p>把主题\source文件夹下的favicon.ico替换或者在主题配置文件中找到favicon字段把地址换成你的地址<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">favicon: /favicon.ico</div></pre></td></tr></table></figure></p>
<h3 id="配置展示信息"><a href="#配置展示信息" class="headerlink" title="配置展示信息"></a>配置展示信息</h3><p>找到inf字段来对应设置你要展示的信息<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">inf:</div><div class="line">  name: conci.theme</div><div class="line">  superscript: hexo//上标字段</div><div class="line">  describe:</div><div class="line">    one: conci version 1.0.0//第一行信息</div><div class="line">    two: Simple and practical hexo personal blog theme.//第2行信息</div><div class="line">    three: The freedom to choose//第3行信息</div></pre></td></tr></table></figure></p>
<h3 id="配置社交账号地址"><a href="#配置社交账号地址" class="headerlink" title="配置社交账号地址"></a>配置社交账号地址</h3><p>找到my_social字段来对应设置你要展示的信息<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">my_social:</div><div class="line">  github: https://github.com/cspp01</div><div class="line">  twitter: /</div><div class="line">  weibo: http://weibo.com/5262373626/profile?topnav=1&amp;wvr=6&amp;is_all=1</div><div class="line">  豆瓣: http://douban.com/people/160374034/</div><div class="line">  知乎: http://www.zhihu.com/people/cc-chen-4-85</div></pre></td></tr></table></figure></p>
<h3 id="配置友情链接"><a href="#配置友情链接" class="headerlink" title="配置友情链接"></a>配置友情链接</h3><p>找到my_links字段来按格式设置，要设置几个友情链接就设置几个<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">my_links:</div><div class="line">  ccblog1://友情链接名字</div><div class="line">    href: //友情链接地址</div><div class="line">    img: http://ooa3lxrpg.bkt.clouddn.com/timg.jpg//友情链接头像地址</div><div class="line">  ccblog2://友情链接名字</div><div class="line">    href: //友情链接地址</div><div class="line">    img: http://ooa3lxrpg.bkt.clouddn.com/timg.jpg//友情链接头像地址</div></pre></td></tr></table></figure></p>
<h3 id="配置首页文章简介字符数"><a href="#配置首页文章简介字符数" class="headerlink" title="配置首页文章简介字符数"></a>配置首页文章简介字符数</h3><p>找到index_pagelength字段设置<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">index_pagelength: 200//字符数</div></pre></td></tr></table></figure></p>
<h3 id="开启打赏功能"><a href="#开启打赏功能" class="headerlink" title="开启打赏功能"></a>开启打赏功能</h3><p>找到reward字段设置<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">reward:</div><div class="line">  open: <span class="literal">true</span>//[<span class="literal">true</span>(开启)|<span class="literal">false</span>(关闭)]</div><div class="line">  weixing: http://ooa3lxrpg.bkt.clouddn.com/wx.jpg?imageView2/2/w/180 <span class="comment">#你的微信收钱二维码图片地址</span></div><div class="line">  alipay: http://ooa3lxrpg.bkt.clouddn.com/zfb.jpg?imageView2/2/w/180 <span class="comment">#你的支付宝收钱二维码图片地址</span></div></pre></td></tr></table></figure></p>
<h3 id="自定义侧边栏位置"><a href="#自定义侧边栏位置" class="headerlink" title="自定义侧边栏位置"></a>自定义侧边栏位置</h3><p>找到sidebar字段设置，注意两个属性的值必须相反<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sidebar:</div><div class="line">  content: left//内容位置[left|right]</div><div class="line">  my: right//侧边栏位置[left|right]</div></pre></td></tr></table></figure></p>
<h2 id="文章属性配置"><a href="#文章属性配置" class="headerlink" title="文章属性配置"></a>文章属性配置</h2><p>在source /\ _posts下的文章中在两个- - -之间添加<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">---</div><div class="line">title: hexo的next主题配置和优化</div><div class="line">date: 2017-06-1 08:15:23</div><div class="line">tags: [<span class="string">'hexo'</span>,<span class="string">'next'</span>,<span class="string">'css'</span>] //hexo和next就是标签，你可以写任何关于你文章名字的标签</div><div class="line">categories: hexo博客搭建 //分类</div><div class="line">pho: http://ooa3lxrpg.bkt.clouddn.com/11.jpg //首页展示图片地址，未配置的话会显示默认图片</div><div class="line">---</div></pre></td></tr></table></figure></p>
<p>今天基本就写到这里了，希望对你们有帮助。<br>下一篇介绍怎么开启conci主题的评论，搜索，分享，rss,阅读数统计等。</p>

    </div>
    
        <div id="page-post-tags">
              <a class="article-tag-link" href="/tags/conci/">conci</a>&nbsp;/&nbsp;<a class="article-tag-link" href="/tags/hexo/">hexo</a>&nbsp;/&nbsp;<a class="article-tag-link" href="/tags/hexo主题/">hexo主题</a>
        </div>
    
    
        <div id="page-post-reward">
            <label for="page-post-inp">打赏</label>
            <input type="checkbox" id="page-post-inp">
            <ul class="clearfix">
                <li>
                    <a href="javascript:void(0);">
                        <img src="http://ooa3lxrpg.bkt.clouddn.com/wx.jpg?imageView2/2/w/180">
                    </a>
                    <p>微信</p>
                </li>
                <li>
                    <a href="javascript:void(0);">
                        <img src="http://ooa3lxrpg.bkt.clouddn.com/zfb.jpg?imageView2/2/w/180">
                    </a>
                    <p>支付宝</p>
                </li>
            </ul>
        </div>
    
    
<nav id="article-nav" class="clearfix">
  
    <a href="/2017/05/31/jquery显示隐藏常用方式性能测试报告/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">上一篇</strong>
      <div class="article-nav-title">
        
          
          jquery显示隐藏常用方式性能测试报告
        
      </div>
    </a>
  
  
    <a href="/2017/06/06/bootstrap解析-栅格系统/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">下一篇</strong>
      <div class="article-nav-title">
          
          
          bootstrap解析-栅格系统
          
      </div>
    </a>
  
</nav>

</article>


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"4","bdPos":"left","bdTop":"100"},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"32"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>



<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
<script>
    var cloudTieConfig = {
        url: document.location.href,
        sourceId: '',
        productKey: '6f0492a87f74476e9df370e5e7ce2270',
        target: 'cloud-tie-wrapper'
    };
    var yunManualLoad = true;
    Tie.loader('aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vcGMvbGl2ZXNjcmlwdC5odG1s', true);
</script>



        </section>
        <section id="main-right" class="right">
            <div class="my">
    <div class="my-information">
        <div class="my-img">
            <img src="http://ooa3lxrpg.bkt.clouddn.com/b.jpg?imageView2/1/w/120/h/120/q/75" rel="图片">
            <a href="https://github.com/cspp01"></a>
        </div>
        <span>cc</span>
        <p>求知若饥 虚心若愚</p>
    </div>
    <p class="my-social">
        
            <a href="https://github.com/cspp01" class="my-social-me5">github</a>
        
            <a href="/" class="my-social-me2">twitter</a>
        
            <a href="http://weibo.com/5262373626/profile?topnav=1&wvr=6&is_all=1" class="my-social-me2">weibo</a>
        
            <a href="http://douban.com/people/160374034/" class="my-social-me2">豆瓣</a>
        
            <a href="http://www.zhihu.com/people/cc-chen-4-85" class="my-social-me1">知乎</a>
        
    </p>
    <div class="my-post">
        <a href="/archives">
            <strong>19</strong><br>
            <span>posts</span>
        </a>
        <a href="/categories">
            <strong>11</strong><br>
            <span>categories</span>
        </a>
        <a href="/tags">
            <strong>21</strong><br>
            <span>tags</span>
        </a>
    </div>
    <div class="search-rss">
        <div class="my-search">
            <a href="javascript:void(0)" id ='my-search-a' class="popup-trigger">search</a>
        </div>
        
            <div class="my-rss">
                <a href="/atom.xml">rss</a>
            </div>
        
    </div>
    <div class="my-links">
        <ul class="clearfix">
            
            <li>
                <a href="/">
                    <img src="http://ooa3lxrpg.bkt.clouddn.com/timg.jpg">
                    <p>ccblog</p>
                </a>
            </li>
            
            <li>
                <a href="/">
                    <img src="http://ooa3lxrpg.bkt.clouddn.com/timg%20%282%29.jpg">
                    <p>boc</p>
                </a>
            </li>
            
            <li>
                <a href="/">
                    <img src="http://ooa3lxrpg.bkt.clouddn.com/timg%20%283%29.jpg">
                    <p>haha</p>
                </a>
            </li>
            
            <li>
                <a href="/">
                    <img src="http://ooa3lxrpg.bkt.clouddn.com/timg%20%283%29.jpg">
                    <p>pp</p>
                </a>
            </li>
            
            <li>
                <a href="/">
                    <img src="http://ooa3lxrpg.bkt.clouddn.com/timg%20%281%29.jpg">
                    <p>oop</p>
                </a>
            </li>
            
        </ul>
    </div>
    <div class="hot-page">
        
    </div>
</div>
            
            <div id="warehouse"></div>
            
        </section>
    </div>
    <footer id="footer">
    <p>© 2017  cc | <iframe src="https://ghbtns.com/github-btn.html?user=cspp01&repo=cspp01.github.io&type=star&count=true" >
        </iframe><br/>
        concise theme, this world is mine.  | cc'blog | Fork me on Github
        
            | <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261969111'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1261969111%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
        
    </p>
</footer>
</div>
<label for="left-information"></label>


    <div class="site-search">
        <div class="algolia-popup popup">
            <div class="algolia-search">
                <div class="algolia-search-input-icon">
                    <i class="fa fa-search"></i>
                </div>
                <div class="algolia-search-input" id="algolia-search-input"></div>
            </div>

            <div class="algolia-results">
                <div id="algolia-stats"></div>
                <div id="algolia-hits"></div>
                <div id="algolia-pagination" class="algolia-pagination"></div>
            </div>

            <span class="popup-btn-close">
          <i class="fa fa-times-circle"></i>
        </span>
        </div>
    </div>


<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("rRxCAb8Kk2bhhTQJInFKaY4v-gzGzoHsz", "eEp5YWpvXhpv3Jvheh4bHCfG");</script>
<script>
    function showTime(test) {
        var query = new AV.Query(test);
        var entries = [];
        var $visitors = $(".leancloud_visitors");

        $visitors.each(function () {
            entries.push( $(this).attr("id").trim() );
        });

        query.containedIn('url', entries);
        query.find()
            .done(function (results) {
                var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

                if (results.length === 0) {
                    $visitors.find(COUNT_CONTAINER_REF).text(0);
                    return;
                }

                for (var i = 0; i < results.length; i++) {
                    var item = results[i];
                    var url = item.get('url');
                    var time = item.get('time');
                    var element = document.getElementById(url);

                    $(element).find(COUNT_CONTAINER_REF).text(time);
                }
            })
            .fail(function (object, error) {
                console.log("Error: " + error.code + " " + error.message);
            });
    }

    function addCount(test) {
        var $visitors = $(".leancloud_visitors");
        var url = $visitors.attr('id').trim();
        var title = $visitors.attr('data-flag-title').trim();
        var query = new AV.Query(test);

        query.equalTo("url", url);
        query.find({
            success: function(results) {
                if (results.length > 0) {
                    var counter = results[0];
                    counter.fetchWhenSave(true);
                    counter.increment("time");
                    counter.save(null, {
                        success: function(counter) {
                            var $element = $(document.getElementById(url));
                            $element.find('.leancloud-visitors-count').text(counter.get('time'));
                        },
                        error: function(counter, error) {
                            console.log('Failed to save Visitor num, with error message: ' + error.message);
                        }
                    });
                } else {
                    var newcounter = new test();
                    /* Set ACL */
                    var acl = new AV.ACL();
                    acl.setPublicReadAccess(true);
                    acl.setPublicWriteAccess(true);
                    newcounter.setACL(acl);
                    /* End Set ACL */
                    newcounter.set("title", title);
                    newcounter.set("url", url);
                    newcounter.set("time", 1);
                    newcounter.save(null, {
                        success: function(newcounter) {
                            var $element = $(document.getElementById(url));
                            $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
                        },
                        error: function(newcounter, error) {
                            console.log('Failed to create');
                        }
                    });
                }
            },
            error: function(error) {
                console.log('Error:' + error.code + " " + error.message);
            }
        });
    }

    $(function() {
        var test = AV.Object.extend("Counter");
        if ($('.leancloud_visitors').length == 1) {
            addCount(test);
        } else if ($('.leancloud_visitors').length > 1) {
            showTime(test);
        }
    });
</script>



<script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

</body>

<script src="/js/getTitle.js"></script>
    <script>
        $(function(){
            var __warehouse=document.getElementById('warehouse');
            var __content=document.getElementById('post');
            var cus={
                'title':'none',
                'article':__content,
            };
            __warehouse.__newCc(cus);
        });
    </script>

</html>